package sourceCode;

import java.awt.geom.Point2D;


public class Embranchement extends ConteneurChariots {

    public Embranchement(int _id, Point2D.Double _point) {
        super(_id, _point);
    }

    @Override
    public Boolean ajouterChariot(Chariot c) {
        this.chariotContenu = c;
        c.setNoeud(this);
        return true;
    }

    @Override
    public Boolean supprimerChariot(Chariot c) {
        this.chariotContenu = null;
        c.setNoeud(null);
        return true;
    }


    public Chariot getChariot() {
        return this.chariotContenu;
    }
}
